<include file="./Tpl/Admin/header.html" />
<style>
	li{ margin-bottom:20px; text-align:right; padding-right:500px}
	input,select{ margin-left:40px; height:25px; line-height:25px;}
</style>
<div class="main">
	<div class="main_title">
		<img src="/Public/Admin/images/book1.gif"/>&nbsp;&nbsp;矿机配置
	</div>
	<div class="list_body">
	    <form action="?s=Admin/Factory/save_factory" method="post" id="formid">
        	<ul>
            	<input type="hidden" name="id" value="{$f.id}" />
            	<li>名称:<input type="text" name="name" value="{$f.name}"/></li>
                <li>购买币种:
                		<select name='buytype' style="width:140px">
                		<option>选择币种</option>
                		<foreach name='type' item='v'>
                			<option <eq name="v['id']" value="$f['buytype']"> selected="selected"</eq> value='{$v.id}'>{$v.name}</option>
                		</foreach>
                		</select>
                		
              </li>
               <li>赠送币种:
                		<select name='zengsong' style="width:140px">
                		<option>选择币种</option>
                		<foreach name='type' item='v'>
                			<option <eq name="v['id']" value="$f['zengsong']"> selected="selected"</eq> value='{$v.id}'>{$v.name}</option>
                		</foreach>
                		</select>
                		
              </li>
                <li>算力:<input type="text" name="suanli" value="{$f.suanli}"disabled="disabled" /></li>
                <li>一天价格:<input type="text" name="price" value="{$f.price}" /></li>
                <li><input type="submit" value="修改" width="200" /></li>
            </ul>
		</form>
	</div>
</div>
<include file="./Tpl/Admin/footer.html" />